<template>
	<view class="uni_box home">
		<navbar :title='title'>
		</navbar>
		<view class="content">
			<u-parse class="cont" v-if="content" :html="content" :tag-style="style"></u-parse>
			<!-- <u-loadmore :status="status" :loadText="meiyou" @loadmore="loadmore" /> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: '',
				title:'协议',
				key:''
			}
		},
		computed: {
		},
		onLoad(option) {
			if(option.key){
				this.key = option.key
			}
			this.getxieyi()
		},
		onShow() {
		},
		methods: {
			async getxieyi(){
				
				let res = await this.$u.api.getMyblock({
					code:this.key
				});
				this.title = res.name
				this.content = res.content

			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.uni_box{
		background-color:#F7F7FA;
		min-heiht:100vh;
	}
	.content{
		background-color: #fff;
		min-height: 100vh;
		padding: 30rpx;
	}
</style>
